package biz.datalk.industrialland.common.encrypt.sm;


import biz.datalk.industrialland.common.result.UnifyResultCode;

/**
 * @author tarofang@163.com
 * @date 2022-06-28
 */
public class SM3EncryptException extends GMEncryptException {
    private static final long serialVersionUID = 1L;

    public static final String MESSAGE = "SM3加解密异常";

    public SM3EncryptException() {
        super(MESSAGE);
    }

    public SM3EncryptException(String message) {
        super(MESSAGE);
        this.code = UnifyResultCode.ENCRYPTION_ERROR_SM3;
    }

    public SM3EncryptException(String code, String message) {
        super(message);
        this.code = code;
    }

    public SM3EncryptException(String message, Throwable cause) {
        super(message, cause);
        this.code = UnifyResultCode.ENCRYPTION_ERROR_SM3;
    }

    public SM3EncryptException(String code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public SM3EncryptException(Throwable cause) {
        super(cause);
        this.code = UnifyResultCode.ENCRYPTION_ERROR_SM3;
    }

}
